home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Now 11 / CD-ROM Now MegaDisc 11 (1995-02).iso / discs / internet / unix1.txt < prev    next >
Internet Message Format  |  1994-10-26  |  18KB

  1. Path: bloom-beacon.mit.edu!senator-bedfellow.mit.edu!faqserv
  2. From: tmatimar@isgtec.com (Ted Timar)
  3. Newsgroups: comp.unix.questions,comp.unix.shell,comp.answers,news.answers
  4. Subject: Unix - Frequently Asked Questions (1/7) [Frequent posting]
  5. Supersedes: <unix-faq/faq/part1_779635319@rtfm.mit.edu>
  6. Followup-To: comp.unix.questions
  7. Date: 23 Sep 1994 19:34:10 GMT
  8. Organization: ISG Technologies, Inc
  9. Lines: 403
  10. Approved: news-answers-request@MIT.Edu
  11. Distribution: world
  12. Expires: 21 Oct 1994 19:25:02 GMT
  13. Message-ID: <unix-faq/faq/part1_780348302@rtfm.mit.edu>
  14. References: <unix-faq/faq/contents_780348302@rtfm.mit.edu>
  15. NNTP-Posting-Host: bloom-picayune.mit.edu
  16. X-Last-Updated: 1994/09/08
  17. Originator: faqserv@bloom-picayune.MIT.EDU
  18. Xref: bloom-beacon.mit.edu comp.unix.questions:32516 comp.unix.shell:13047 comp.answers:7423 news.answers:26207
  19.  
  20. Archive-name: unix-faq/faq/part1
  21. Version: $Id: part1,v 2.5 1994/04/28 19:25:03 tmatimar Exp tmatimar $
  22.  
  23. These seven articles contain the answers to some Frequently Asked
  24. Questions often seen in comp.unix.questions and comp.unix.shell.
  25. Please don't ask these questions again, they've been answered plenty
  26. of times already - and please don't flame someone just because they may
  27. not have read this particular posting.  Thank you.
  28.  
  29. This collection of documents is Copyright (c) 1994, Ted Timar, except
  30. Part 6, which is Copyright (c) 1994, Pierre Lewis and Ted Timar.
  31. All rights reserved.  Permission to distribute the collection is
  32. hereby granted providing that distribution is electronic, no money
  33. is involved, reasonable attempts are made to use the latest version
  34. and all credits and this copyright notice are maintained.
  35. Other requests for distribution will be considered.  All reasonable
  36. requests will be granted.
  37.  
  38. All information here has been contributed with good intentions, but
  39. none of it is guaranteed either by the contributors or myself to be
  40. accurate.  The users of this information take all responsibility for
  41. any damage that may occur.
  42.  
  43. Many FAQs, including this one, are available on the archive site
  44. rtfm.mit.edu in the directory pub/usenet/news.answers.
  45. The name under which a FAQ is archived appears in the "Archive-Name:"
  46. line at the top of the article.  This FAQ is archived as
  47. "unix-faq/faq/part[1-7]".
  48.  
  49. These articles are divided approximately as follows:
  50.  
  51.       1.*) General questions.
  52.       2.*) Relatively basic questions, likely to be asked by beginners.
  53.       3.*) Intermediate questions.
  54.       4.*) Advanced questions, likely to be asked by people who thought
  55.            they already knew all of the answers.
  56.       5.*) Questions pertaining to the various shells, and the differences.
  57.       6.*) An overview of Unix variants.
  58.       7.*) An comparison of configuration management systems (RCS, SCCS).
  59.  
  60. This article includes answers to:
  61.  
  62.       1.1)  Who helped you put this list together?
  63.       1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  64.               the number in parentheses mean?
  65.       1.3)  What does {some strange unix command name} stand for?
  66.       1.4)  How does the gateway between "comp.unix.questions" and the
  67.               "info-unix" mailing list work?
  68.       1.5)  What are some useful Unix or C books?
  69.       1.6)  What happened to the pronunciation list that used to be
  70.               part of this document?
  71.  
  72. If you're looking for the answer to, say, question 1.5, and want to skip
  73. everything else, you can search ahead for the regular expression "^1.5)".
  74.  
  75. While these are all legitimate questions, they seem to crop up in
  76. comp.unix.questions or comp.unix.shell on an annual basis, usually
  77. followed by plenty of replies (only some of which are correct) and then
  78. a period of griping about how the same questions keep coming up.  You
  79. may also like to read the monthly article "Answers to Frequently Asked
  80. Questions" in the newsgroup "news.announce.newusers", which will tell
  81. you what "UNIX" stands for.
  82.  
  83. With the variety of Unix systems in the world, it's hard to guarantee
  84. that these answers will work everywhere.  Read your local manual pages
  85. before trying anything suggested here.  If you have suggestions or
  86. corrections for any of these answers, please send them to to
  87. tmatimar@isgtec.com.
  88.  
  89. ----------------------------------------------------------------------
  90.  
  91. Subject: Who helped you put this list together?
  92. Date: Thu Mar 18 17:16:55 EST 1993
  93.  
  94. 1.1)  Who helped you put this list together?
  95.  
  96.       Happy Birthday Unix FAQ.  The Unix FAQ is now over 5 years old!
  97.       Everyone who ever contributed to this FAQ is encouraged to go out
  98.       and have a piece of birthday cake.  Unfortunately, I can't distribute
  99.       the cake by email, so you'll have to make your own.  :-)
  100.  
  101.       This document was one of the first collections of Frequently Asked
  102.       Questions.  It was originally compiled in July 1989.
  103.  
  104.       I took over the maintenance of this list.  Almost all of the work
  105.       (and the credit) for generating this compilation was done by
  106.       Steve Hayman.
  107.  
  108.       We also owe a great deal of thanks to dozens of Usenet readers who
  109.       submitted questions, answers, corrections and suggestions for this
  110.       list.  Special thanks go to Maarten Litmaath, Guy Harris and
  111.       Jonathan Kamens, who have all made many especially valuable
  112.       contributions.
  113.  
  114.       Part 5 of this document (shells) was written almost entirely by
  115.       Matthew Wicks <wicks@dcdmjw.fnal.gov>.
  116.  
  117.       Part 6 of this document (Unix flavours) was written almost entirely by
  118.       Pierre (P.) Lewis <lew@bnr.ca>.
  119.  
  120.       Where possible the author of each question and the date it was last
  121.       updated is given at the top.  Unfortunately, I only started this
  122.       practice recently, and much of the information is lost.  I was also
  123.       negligent in keeping track of who provided updates to questions.
  124.       Sorry to those who have made valuable contributions, but did not
  125.       receive the credit and recognition that they legitimately deserve.
  126.  
  127.       I make this document available in *roff format (ms and mm macro
  128.       packages).  Andrew Cromarty has also converted it into Texinfo format.
  129.  
  130. ------------------------------
  131.  
  132. Subject: When someone refers to 'rn(1)' ...  the number in parentheses mean?
  133. Date: Thu Mar 18 17:16:55 EST 1993
  134.  
  135. 1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  136.       the number in parentheses mean?
  137.  
  138.       It looks like some sort of function call, but it isn't.  These
  139.       numbers refer to the section of the "Unix manual" where the
  140.       appropriate documentation can be found.  You could type
  141.       "man 3 ctime" to look up the manual page for "ctime" in section 3
  142.       of the manual.
  143.  
  144.       The traditional manual sections are:
  145.  
  146.         1       User-level  commands
  147.         2       System calls
  148.         3       Library functions
  149.         4       Devices and device drivers
  150.         5       File formats
  151.         6       Games
  152.         7       Various miscellaneous stuff - macro packages etc.
  153.         8       System maintenance and operation commands
  154.  
  155.       Some Unix versions use non-numeric section names.  For instance,
  156.       Xenix uses "C" for commands and "S" for functions.  Some newer
  157.       versions of Unix require "man -s# title" instead of "man # title".
  158.  
  159.       Each section has an introduction, which you can read with "man #
  160.       intro" where # is the section number.
  161.  
  162.       Sometimes the number is necessary to differentiate between a
  163.       command and a library routine or system call of the same name.
  164.       For instance, your system may have "time(1)", a manual page about
  165.       the 'time' command for timing programs, and also "time(3)", a
  166.       manual page about the 'time' subroutine for determining the
  167.       current time.  You can use "man 1 time" or "man 3 time" to
  168.       specify which "time" man page you're interested in.
  169.  
  170.       You'll often find other sections for local programs or even
  171.       subsections of the sections above - Ultrix has sections 3m, 3n,
  172.       3x and 3yp among others.
  173.  
  174. ------------------------------
  175.  
  176. Subject: What does {some strange unix command name} stand for?
  177. Date: Thu Mar 18 17:16:55 EST 1993
  178.  
  179. 1.3)  What does {some strange unix command name} stand for?
  180.  
  181.       awk = "Aho Weinberger and Kernighan"
  182.  
  183.         This language was named by its authors, Al Aho, Peter
  184.         Weinberger and Brian Kernighan.
  185.  
  186.       grep = "Global Regular Expression Print"
  187.  
  188.         grep comes from the ed command to print all lines matching a
  189.         certain pattern
  190.  
  191.                     g/re/p
  192.  
  193.         where "re" is a "regular expression".
  194.  
  195.       fgrep = "Fixed GREP".
  196.  
  197.         fgrep searches for fixed strings only.  The "f" does not stand
  198.         for "fast" - in fact, "fgrep foobar *.c" is usually slower than
  199.         "egrep foobar *.c"  (Yes, this is kind of surprising. Try it.)
  200.  
  201.         Fgrep still has its uses though, and may be useful when searching
  202.         a file for a larger number of strings than egrep can handle.
  203.  
  204.       egrep = "Extended GREP"
  205.  
  206.         egrep uses fancier regular expressions than grep.  Many people
  207.         use egrep all the time, since it has some more sophisticated
  208.         internal algorithms than grep or fgrep, and is usually the
  209.         fastest of the three programs.
  210.  
  211.       cat = "CATenate"
  212.  
  213.         catenate is an obscure word meaning "to connect in a series",
  214.         which is what the "cat" command does to one or more files.  Not
  215.         to be confused with C/A/T, the Computer Aided Typesetter.
  216.  
  217.       gecos = "General Electric Comprehensive Operating System"
  218.         
  219.         When GE's large systems division was sold to Honeywell,
  220.         Honeywell dropped the "E" from "GECOS".
  221.  
  222.         Unix's password file has a "pw_gecos" field.  The name is a
  223.         real holdover from the early days.  Dennis Ritchie has reported:
  224.  
  225.             "Sometimes we sent printer output or batch jobs
  226.              to the GCOS machine.  The gcos field in the password file
  227.              was a place to stash the information for the $IDENT card.
  228.              Not elegant."
  229.  
  230.       nroff = "New ROFF"
  231.       troff = "Typesetter new ROFF"
  232.         
  233.         These are descendants of "roff", which was a re-implementation
  234.         of the Multics "runoff" program (a program that you'd use to
  235.         "run off" a good copy of a document).
  236.  
  237.       tee       = T
  238.  
  239.         From plumbing terminology for a T-shaped pipe splitter.
  240.  
  241.       bss = "Block Started by Symbol"
  242.         
  243.         Dennis Ritchie says:
  244.  
  245.             Actually the acronym (in the sense we took it up; it may
  246.             have other credible etymologies) is "Block Started by
  247.             Symbol." It was a pseudo-op in FAP (Fortran Assembly [-er?]
  248.             Program), an assembler for the IBM 704-709-7090-7094
  249.             machines.  It defined its label and set aside space for a
  250.             given number of words.  There was another pseudo-op, BES,
  251.             "Block Ended by Symbol" that did the same except that the
  252.             label was defined by the last assigned word + 1.  (On these
  253.             machines Fortran arrays were stored backwards in storage
  254.             and were 1-origin.)
  255.  
  256.             The usage is reasonably appropriate, because just as with
  257.             standard Unix loaders, the space assigned didn't have to be
  258.             punched literally into the object deck but was represented
  259.             by a count somewhere.
  260.  
  261.       biff = "BIFF"
  262.  
  263.         This command, which turns on asynchronous mail notification,
  264.         was actually named after a dog at Berkeley.
  265.  
  266.             I can confirm the origin of biff, if you're interested.
  267.             Biff was Heidi Stettner's dog, back when Heidi (and I, and
  268.             Bill Joy) were all grad students at U.C. Berkeley and the
  269.             early versions of BSD were being developed.   Biff was
  270.             popular among the residents of Evans Hall, and was known
  271.             for barking at the mailman, hence the name of the command.
  272.  
  273.         Confirmation courtesy of Eric Cooper, Carnegie Mellon University
  274.  
  275.       rc (as in ".cshrc" or "/etc/rc") = "RunCom"
  276.  
  277.         "rc" derives from "runcom", from the MIT CTSS system, ca. 1965.
  278.  
  279.             'There was a facility that would execute a bunch of
  280.             commands stored in a file; it was called "runcom" for "run
  281.             commands", and the file began to be called "a runcom."
  282.  
  283.             "rc" in Unix is a fossil from that usage.'
  284.         
  285.         Brian Kernighan & Dennis Ritchie, as told to Vicki Brown
  286.  
  287.         "rc" is also the name of the shell from the new Plan 9
  288.         operating system.
  289.  
  290.       Perl = "Practical Extraction and Report Language"
  291.       Perl = "Pathologically Eclectic Rubbish Lister"
  292.  
  293.         The Perl language is Larry Wall's highly popular
  294.         freely-available completely portable text, process, and file
  295.         manipulation tool that bridges the gap between shell and C
  296.         programming (or between doing it on the command line and
  297.         pulling your hair out).  For further information, see the
  298.         Usenet newsgroup comp.lang.perl.
  299.  
  300.       Don Libes' book "Life with Unix" contains lots more of these
  301.       tidbits.
  302.  
  303. ------------------------------
  304.  
  305. Subject: How does the gateway between "comp.unix.questions" ... work ?
  306. Date: Thu Mar 18 17:16:55 EST 1993
  307.  
  308. 1.4)  How does the gateway between "comp.unix.questions" and the
  309.       "info-unix" mailing list work?
  310.  
  311.       "info-unix" and "unix-wizards" are mailing list versions of
  312.       comp.unix.questions and comp.unix.wizards respectively.
  313.       There should be no difference in content between the
  314.       mailing list and the newsgroup.
  315.  
  316.       To get on or off either of these lists, send mail to
  317.       info-unix-request@brl.mil or unix-wizards-request@brl.mil.
  318.       Be sure to use the '-Request'.  Don't expect an immediate response.
  319.  
  320.       Here are the gory details, courtesy of the list's maintainer,
  321.       Bob Reschly.
  322.  
  323.       ==== postings to info-UNIX and UNIX-wizards lists ====
  324.  
  325.       Anything submitted to the list is posted; I do not moderate
  326.       incoming traffic -- BRL functions as a reflector.  Postings
  327.       submitted by Internet subscribers should be addressed to the list
  328.       address (info-UNIX or UNIX- wizards);  the '-request' addresses
  329.       are for correspondence with the list maintainer [me].  Postings
  330.       submitted by USENET readers should be addressed to the
  331.       appropriate news group (comp.unix.questions or
  332.       comp.unix.wizards).
  333.  
  334.       For Internet subscribers, received traffic will be of two types;
  335.       individual messages, and digests.  Traffic which comes to BRL
  336.       from the Internet and BITNET (via the BITNET-Internet gateway) is
  337.       immediately resent to all addressees on the mailing list.
  338.       Traffic originating on USENET is gathered up into digests which
  339.       are sent to all list members daily.
  340.  
  341.       BITNET traffic is much like Internet traffic.  The main
  342.       difference is that I maintain only one address for traffic
  343.       destined to all BITNET subscribers. That address points to a list
  344.       exploder which then sends copies to individual BITNET
  345.       subscribers.  This way only one copy of a given message has to
  346.       cross the BITNET-Internet gateway in either direction.
  347.  
  348.       USENET subscribers see only individual messages.  All messages
  349.       originating on the Internet side are forwarded to our USENET
  350.       machine.  They are then posted to the appropriate newsgroup.
  351.       Unfortunately, for gatewayed messages, the sender becomes
  352.       "news@brl-adm".  This is currently an unavoidable side-effect of
  353.       the software which performs the gateway function.
  354.  
  355.       As for readership, USENET has an extremely large readership - I
  356.       would guess several thousand hosts and tens of thousands of
  357.       readers.  The master list maintained here at BRL runs about two
  358.       hundred fifty entries with roughly ten percent of those being
  359.       local redistribution lists.  I don't have a good feel for the
  360.       size of the BITNET redistribution, but I would guess it is
  361.       roughly the same size and composition as the master list.
  362.       Traffic runs 150K to 400K bytes per list per week on average.
  363.  
  364. ------------------------------
  365.  
  366. Subject: What are some useful Unix or C books?
  367. Date: Thu Mar 18 17:16:55 EST 1993
  368.  
  369. 1.5)  What are some useful Unix or C books?
  370.  
  371.       Mitch Wright (mitch@cirrus.com) maintains a useful list of Unix
  372.       and C books, with descriptions and some mini-reviews.  There are
  373.       currently 167 titles on his list.
  374.  
  375.       You can obtain a copy of this list by anonymous ftp from
  376.       ftp.rahul.net (192.160.13.1), where it's "pub/mitch/YABL/yabl".
  377.       Send additions or suggestions to mitch@cirrus.com.
  378.  
  379.       Samuel Ko (kko@sfu.ca) maintains another list of Unix books.
  380.       This list contains only recommended books, and is therefore
  381.       somewhat shorter.  This list is also a classified list, with
  382.       books grouped into categories, which may be better if you are
  383.       looking for a specific type of book.
  384.  
  385.       You can obtain a copy of this list by anonymous ftp from
  386.       rtfm.mit.edu, where it's "pub/usenet/news.answers/books/unix".
  387.       Send additions or suggestions to kko@sfu.ca.
  388.  
  389.       If you can't use anonymous ftp, email the line "help" to
  390.       "ftpmail@decwrl.dec.com" for instructions on retrieving
  391.       things via email.
  392.  
  393. ------------------------------
  394.  
  395. Subject: What happened to the pronunciation list ... ?
  396. Date: Thu Mar 18 17:16:55 EST 1993
  397.  
  398. 1.6)  What happened to the pronunciation list that used to be part of this
  399.       document?
  400.  
  401.       From its inception in 1989, this FAQ document included a
  402.       comprehensive pronunciation list maintained by Maarten Litmaath
  403.       (thanks, Maarten!).  It was originally created by Carl Paukstis
  404.       <carlp@frigg.isc-br.com>.
  405.  
  406.       It has been retired, since it is not really relevant to the topic
  407.       of "Unix questions".  You can still find it as part of the
  408.       widely-distributed "Jargon" file (maintained by Eric S. Raymond,
  409.       eric@snark.thyrsus.com) which seems like a much more appropriate
  410.       forum for the topic of "How do you pronounce  /* ?"
  411.  
  412.       If you'd like a copy, you can ftp one from ftp.wg.omron.co.jp
  413.       (133.210.4.4), it's "pub/unix-faq/docs/Pronunciation-Guide".
  414.  
  415. ------------------------------
  416.  
  417. End of unix/faq Digest part 1 of 7
  418. **********************************
  419.  
  420. -- 
  421. Ted Timar - tmatimar@isgtec.com
  422. ISG Technologies Inc., 6509 Airport Road, Mississauga, Ontario, Canada L4V 1S7
  423.